$('#top-btn,#photographs,#last-article,#introduce,#go-top,#go-banner').click(function() {
	if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
		var $target = $(this.hash);
		$target = $target.length && $target || $('[id=' + this.hash.slice(1) + ']');
		if ($target.length) {
			var targetOffset = $target.offset().top;
			$('html,body').animate({
					scrollTop: targetOffset
				},
				1000);
			return false;
		}
	}
});

$(function() {
	var docHeight = $(document).scrollTop();
	$(window).scroll(function() {
		var scrollY = $(document).scrollTop(); // 获取垂直滚动的距离，即滚动了多少
		if (scrollY > 775) {
			$('#header-bar').show();
			$('#go-top').show();
		} else {
			$('#go-top,#header-bar').hide();
		}
	});
})
